package pl.SilverSable.Engine;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.math.Vector3;

public class GestureState {
	private Vector3 tappedPosition;
	private boolean tapped;
	
	private Vector3 touchDownPosition;
	private boolean touchDown;
	
	private boolean longPressed;
	
	
	private float deltaFlingX;
	private float deltaFlingY;
	
	
	private float deltaPanX;
	private float deltaPanY;
	private boolean tappedTimeEnded;
	
	public GestureState(boolean tapped, boolean tappedTimeEnded, Vector3 tappedPosition, boolean touchDown, Vector3 touchDownPosition, boolean longPressed, float deltaFlingX, float deltaFlingY, float deltaPanX, float deltaPanY){
		this.tapped = tapped;
		this.tappedPosition = tappedPosition;
		this.touchDownPosition = touchDownPosition;
		this.touchDown = touchDown;
		this.longPressed = longPressed;
		this.deltaFlingX = deltaFlingX;
		this.deltaFlingY = deltaFlingY;
		this.deltaPanX = deltaPanX;
		this.deltaPanY = deltaPanY;
	}
	
	public Vector3 GetLastCountTapped(){
		
		if(tappedTimeEnded) { Gdx.app.log("Gest", "tapedCountEnded = true");return tappedPosition;}
		else return null;
		
	}
}
